<ul class="dropdown">
  <% @entries.each do |entry| %>
    <li>
      <span class="payee-id"><%= entry.payee.id %></span>
      <span class="payee-name"><%= entry.payee.name %></span>
      -
      <span class="category-id"><%= entry.category.id %></span>
      <%= entry.category.name %>
      -
      <% if entry.debit.cents > 0 %>
        <span class="debit"><%= entry.debit.format %></span>
        <span class="entry-debit"><%= entry.debit.to_s.commify %></span>
      <% end %>

      <% if entry.credit.cents > 0 %>
        <span class="credit"><%= entry.credit.format %></span>
        <span class="entry-credit"><%= entry.credit.to_s.commify %></span>
      <% end %>

    </li>
  <% end %>
</ul>
